//
//  CADataModel.h
//  cascade-realm
//
//  Created by QSC on 22/5/24.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CADataModel : NSObject
@property(nonatomic,copy)NSString * title;
@property(nonatomic,copy)NSString * content;
@property(nonatomic,copy)NSString * cover;
@property(nonatomic,copy)NSString * key;
@property(nonatomic,strong)NSArray * images;
@property(nonatomic,strong)NSArray * allImages;
@property(nonatomic,assign)BOOL islike;

@property(nonatomic,copy)NSString * binduserId;
@property(nonatomic,strong)NSMutableArray * commentArray;


+ (void)getHomeDataModels:(void(^)(NSArray *))success;

- (CAHomeUser *)getUser;

- (void)save;

- (void)SetIslikeInDB:(BOOL)islike;

- (void)addToPublishArticle;
- (void)removeFormPublishArticle;
+ (NSMutableArray *)getPuhlishAtticle;

- (void)addToPublishForum;
+ (NSMutableArray *)getPuhlishForum;


@end

@interface CAComment : NSObject
@property (nonatomic,strong)NSMutableArray * likeUserIds;
@property (nonatomic,copy)NSString * content;
@property (nonatomic,copy)NSString * path;
@property (nonatomic,copy)NSString * name;
@property (nonatomic,copy)NSString * avatar;
@property (nonatomic,assign)NSInteger recordTime;
@property (nonatomic,assign)NSInteger type;
@property (nonatomic,assign)BOOL playing;
@end

NS_ASSUME_NONNULL_END
